//
//  FavorCell.m
//  project_delicious
//
//  Created by dlios on 15-3-31.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "FavorCell.h"

@implementation FavorCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.favLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.favLabel];
        [_favLabel release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.favLabel.frame = CGRectMake(10, 10, self.contentView.frame.size.width-20, self.contentView.frame.size.height-20);
    self.favLabel.layer.borderWidth = 0.5;
    self.favLabel.layer.cornerRadius = 10;
    self.favLabel.textAlignment = NSTextAlignmentCenter;
    self.favLabel.backgroundColor = [UIColor colorFromHexCode:@"ffce7b"];
    self.favLabel.layer.masksToBounds = YES;
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
